const express = require("express")

const router = express.Router()

const classificationHandler = require('../router_handler/classification_handler')

router.post('/classification',classificationHandler.classificationFunc)

router.post('/initShow',classificationHandler.initShowDataFunc)

router.get('/getYear',classificationHandler.getYearDataFunc)

router.post('/getCountyData',classificationHandler.getCountyDataFunc)

router.post('/getProvince',classificationHandler.getProvinceDataFunc)

router.get('/radar',classificationHandler.getRadarDataFunc)

router.post('/productPie',classificationHandler.getProductPieDataFunc)
router.post('/productPieOfCounty',classificationHandler.getProductPieOfCountyDataFunc)

router.get('/platformClassification',classificationHandler.getPlatformClassificationDataFunc)
router.post('/platformClassificationOfCity',classificationHandler.getPlatformClassificationOfCityDataFunc)

router.get('/productClassification',classificationHandler.getProductClassificationDataFunc)
router.post('/productClassificationOfCity',classificationHandler.getProductClassificationOfCityDataFunc)

router.post('/rankOfCity',classificationHandler.getRankingOfCityDataFunc)
router.get('/rank',classificationHandler.getRankingDataFunc)

router.get('/wordCloud',classificationHandler.getWordCloudDataFunc)

module.exports = router
